//
//  PKReadCommentModel.m
//  PianKe
//
//  Created by 王郑 on 16/1/28.
//  Copyright © 2016年 KFC. All rights reserved.
//

#import "PKReadCommentModel.h"

@implementation PKReadCommentModel

-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
    if ([key isEqualToString:@"userinfo"]) {
        
        _userinfoicon = value[@"icon"];
        _userinfoUid = value[@"uid"];
        _userinfoUname = value[@"uname"];
        
    }
    
    if ([key isEqualToString:@"reuserinfo"]) {
        
        if([value allKeys] == 0) {
            
            _reuserinfoName = @"";
        } else {
            
            _reuserinfoName = value[@"uname"];
        }
        
    }
    
}


@end
